<!--{eval $_TPL['titles'] = array('联盟话题');}-->
<!--{template header}-->
<!--{if !empty($_SGLOBAL[inajax])}-->
	<div id="space_photo">
		<h3 class="feed_header">
			<a href="cp.php?ac=unionthread" class="r_option" target="_blank">发表话题</a>
			联盟话题(共 $count 个)</h3>
		<!--{if $list}-->
		<ul class="line_list">
		<!--{loop $list $key $value}-->
			<li><a href="space.php?uid=$value[uid]&do=unionthread&id=$value[tid]" target="_blank">$value[subject]</a>
			<span class="gray">&nbsp;<a href="space.php?do=union&tagid=$value[tagid]" target="_blank">$value[tagname]</a></span></li>
		<!--{/loop}-->
		</ul>
		<div class="page">$multi</div>
		<!--{else}-->
		<div class="c_form">还没有话题列表。</div>
		<!--{/if}-->
	</div><br>
<!--{else}-->

<!--{if $space[self]}-->
<div class="h_15"></div>
<div class="list-tit">
	<ul>
		<li class="cur"><a href="space.php?do=unionthread&view=me"><span>联盟话题动态</span></a></li>
		<li><a href="space.php?do=union"><span>联盟列表</span></a></li>
		<li><a href="cp.php?ac=unionthread"><span>发起新话题</span></a></li>
		<li><a href="cp.php?ac=union"><span>创建联盟</span></a></li>
	</ul>
</div>
<!-- <div class="h_status">
	<a href="space.php?uid=$space[uid]&do=unionthread&view=hot"$actives[hot]>热门话题</a><span class="pipe">|</span>
	<a href="space.php?uid=$space[uid]&do=unionthread&view=new"$actives[new]>最新话题</a><span class="pipe">|</span>
	<a href="space.php?uid=$space[uid]&do=unionthread&view=me"$actives[me]>我的话题</a>
</div> -->
<!--{else}-->
<!--{eval 
	$_TPL['spacetitle'] = "话题";
	$_TPL['spacemenus'][] = "<a href=\"space.php?uid=$space[uid]&do=unionthread&view=me\">TA的所有话题</a>";
}-->
<!--{template space_menu}-->

<!--{/if}-->

<!--{if $list}-->
<div class="I-list">
	<table cellspacing="0" cellpadding="0">
		<tbody class="blue">
          <tr style="background:#ecf2ff">
            <td width="10">&nbsp;</td>
            <td width="445"><strong>主题</strong></td>
			<td width="190"><strong>联盟</strong></td>
            <td width="190"><strong><!--{if $_GET[view]!='me'}-->作者<!--{/if}-->(回应/阅读)</strong></td>
            <td width="126">最后更新</td>
			</tr>
		<!--{loop $list $key $value}-->
			<!--{eval $magicegg = ""}-->							
			<!--{eval if($value[magicegg]) for($i=0; $i<$value[magicegg]; $i++) $magicegg .= '<img src="image/magic/egg/'.mt_rand(1,6).'.gif" />';}-->
			<tr<!--{if $key%2==1}--> class="alt"<!--{/if}-->>
			    <td width="10">&nbsp;</td>
				<td class="subject">
					$magicegg <a href="space.php?uid=$value[uid]&do=unionthread&id=$value[tid]" <!--{if $value[magiccolor]}--> class="magiccolor$value[magiccolor]"<!--{/if}-->>$value[subject]</a>
					<!--{if $value[hot]}-->
					<br><span class="gray">$value[hot] 人推荐</span>
					<!--{/if}-->
				</td>
				<td><a href="space.php?do=union&tagid=$value[tagid]">$value[tagname]</a></td>
				<td class="author"><a href="space.php?uid=$value[uid]" title="{$_SN[$value[uid]]}">{$_SN[$value[uid]]}</a><br><em>$value[replynum]/$value[viewnum]</em></td>
				<td class="lastpost"><a href="space.php?uid=$value[lastauthorid]" title="{$_SN[$value[lastauthorid]]}">{$_SN[$value[lastauthorid]]}</a><br/><!--{date('m-d H:i',$value[lastpost],1)}--></td>
			</tr>
		<!--{/loop}-->
		</tbody>
	</table>
	<div class="page">$multi</div>
</div>
<!--{else}-->
<div class="c_form">还没有话题列表。</div>
<!--{/if}-->


<!--{if $rlist}-->
	<div style="padding-bottom:10px;">
		<h3 class="l_status">
			<div class="r_option"><a href="space.php?do=union&view=hot">查看更多</a></div>
			热门联盟
		</h3>
		<ul class="unionthread_list">
		<!--{loop $rlist $value}-->
			<li>
			<table width="100%">
				<tr>
				<td width="80">
					<div class="unionthreadimg60"><a href="space.php?do=union&tagid=$value[tagid]"><img src="$value[pic]" style="width:60px;"></a></div>
				</td>
				<td>
					<a href="space.php?do=union&tagid=$value[tagid]" style="font-weight:bold;">$value[tagname]</a>
					<div class="gray">$value[title]</div>
					已有 <span class="num">$value[membernum]</span> 人加入
					<div class="gray">
						话题: $value[unionthreadnum], 回帖: $value[postnum]
					</div>
				</td>
				</tr></table>
			</li>
		<!--{/loop}-->
		</ul>
	</div>
<!--{/if}-->

<!--{/if}-->

<!--{template footer}-->